package cn.tedu.straw.portal.service;


import cn.tedu.straw.commons.model.User;
import cn.tedu.straw.portal.service.ex.ClassDisabledException;
import cn.tedu.straw.commons.vo.TeacherVO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ExceptionHandler;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2020-07-14
 */
public interface IUserService extends IService<User> {

    /**
     * 注册学生账号
     * @param user 学生的基本信息
     * @param inviteCode 邀请码
     */
    void registerStudent(User user,String inviteCode);




    List<TeacherVO> getTeachers();

    List<TeacherVO> getCachedTeachers();


}
